package com.scheduling.product.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 工序原料关联实体
 *
 * @author 开发团队
 * @since 2025-05-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("operation_material")
public class OperationMaterial implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 工序ID
     */
    @TableField("operation_id")
    private String operationId;

    /**
     * 原料ID
     */
    @TableField("material_id")
    private String materialId;

    /**
     * 用量
     */
    @TableField("quantity")
    private BigDecimal quantity;

    /**
     * 单位
     */
    @TableField("unit")
    private String unit;
} 